/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package za.ac.cput.manyeli.designpatterns.creational.abstractFactory;

/**
 *
 * @author 209150351
 */
public class AbstractFactory {
    
    public SpeciesFactory getSpeciesFactory(String type) {
    if ("mammal".equals(type)) {
         return new MammaFactory();
    } else {
        return new ReptileFactory();
    }
    }
}
